<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div>
        {{msg}}
       {{title}}
        </div>
        <br>
        <div v-for="i,ind in todos">
            <img :src="i.image" alt="">
        </div>
    </div>
</body>
</html>
<script src="vue.min.js"></script>
<script src="axios.min.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:'测试',
            todos:[],
            title:''
            },
        mounted(){
            axios.defaults.baseURL = "http://123.207.32.32:8000";   //接口简化  
            axios.defaults.timeout = 1000;                          //超时时间 1000毫秒中没有回应 认为你是失败的 
            axios.get("/home/multidata").then(
                res=>{
                    // console.log(res.data)
                    this.todos = res.data.data.banner.list;
                    }
            ).catch(error=>{
                console.log(error)
            })
        }
    })
    // axios({url:"XXXXXXXXXXXXXXxx"},methods:"放请求方式").then(res=>{console.log(res)})



    
</script>